import request from '@/utils/request'

// 查询被考核集体结果列表
export function listGroupanswer(query) {
  return request({
    url: '/kh/groupanswer/list',
    method: 'get',
    params: query
  })
}

// 查询被考核集体结果详细
export function getGroupanswer(id) {
  return request({
    url: '/kh/groupanswer/' + id,
    method: 'get'
  })
}

// 新增被考核集体结果
export function addGroupanswer(data) {
  return request({
    url: '/kh/groupanswer',
    method: 'post',
    data: data
  })
}

// 修改被考核集体结果
export function updateGroupanswer(data) {
  return request({
    url: '/kh/groupanswer',
    method: 'put',
    data: data
  })
}

// 删除被考核集体结果
export function delGroupanswer(id) {
  return request({
    url: '/kh/groupanswer/' + id,
    method: 'delete'
  })
}

// 导出被考核集体结果
export function exportGroupanswer(query) {
  return request({
    url: '/kh/groupanswer/export',
    method: 'get',
    params: query
  })
}